/*
 * VoodooFPointInfo.cpp
 *
 *  Created on: Apr 29, 2009
 *      Author: wrice
 */
#include <sstream>
#include "MyVideoTrace.h"
namespace MyVideoTrace {

VoodooFPointInfo::VoodooFPointInfo() {
}

bool VoodooFPointInfo::parseFPointData( string lineToParse ) {
	istringstream iss(lineToParse);

	return !(iss >>
			xOffset_ >> yOffset_ >>
			generationWay_ >> unknown1_ >>
			xCoord_ >> yCoord_ >> zCoord_ >>
			fpointId_ >>
			unknown2_ >>
			xOffsetPrevious_ >> yOffsetPrevious_ >>
			unknown3_ ).fail();
}

float VoodooFPointInfo::getXOffset() const {
	return xOffset_;
}

float VoodooFPointInfo::getYOffset() const {
	return yOffset_;
}

bool VoodooFPointInfo::isAutomaticallyGenerated() const {
	return 0 == generationWay_;
}

int VoodooFPointInfo::getUnknown1() const {
	return unknown1_;
}

float VoodooFPointInfo::getXCoord() const {
	return xCoord_;
}

float VoodooFPointInfo::getYCoord() const {
	return yCoord_;
}

float VoodooFPointInfo::getZCoord() const {
	return zCoord_;
}

int VoodooFPointInfo::getFPointID() const {
	return fpointId_;
}

int VoodooFPointInfo::getUnknown2() const {
	return unknown2_;
}

float VoodooFPointInfo::getPreviousXOffset() const {
	return xOffsetPrevious_;
}

float VoodooFPointInfo::getPreviousYOffset() const {
	return yOffsetPrevious_;
}

int VoodooFPointInfo::getUnknown3() const {
	return unknown3_;
}

}
